import axios from '@/utils/request'

/**
 * 分页query
 */
export function pagingQuery(data) {
  return axios({
    url: '/v1/ebsType/pagingQuery',
    method: 'post',
    data
  })
};  
/**
 * 管控项配置
 */
 export function ebsTypeProcessQueryList(data) {
    return axios({
      url: '/api/processControl/queryByProcess ',
      method: 'post',
      data
    })
  }
/**
 * 构建类配置顶部数据
 */
export function ebsTypeGet(data) {
  return axios({
    url: '/v1/ebsType/get',
    method: 'get',
    params: data
  })
}
/**
 * 管控项要求编辑
 */
 export function ebsTypeProcessUpdate(data) {
    return axios({
      url: '/v1/ebsTypeProcess/update',
      method: 'post',
      data
    })
  }
  /**
 * 管控项添加接口
 */
 export function processControlWebAdd(data) {
    return axios({
      url: '/api/processControl/web/add',
      method: 'post',
      data
    })
  }

  /**
 * 删除接口
 */
export function processControlDelete(data) {
  return axios({
    url: '/api/processControl/delete',
    method: 'get',
    params:data
  })
}
  

  /**
 * 编辑接口
 */
export function processControlUpdate(data) {
  return axios({
    url: '/api/processControl/update',
    method: 'post',
    data
  })
}
